Spread Windows Forms 7.0 Product Documentation
CopyTo(NamedStyle[],Int32) Method
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > DefaultStyleCollection Class > CopyTo Method : CopyTo(NamedStyle[],Int32) Method


array
A one-dimensional array into which the elements from ICollection are copied
The array must have zero-based indexing.
index
Zero-based index in array at which to paste styles

Glossary Item Box

Copies the styles in the collection to a specified array at a specified location.

Syntax

Visual Basic (Declaration) 
Public Overloads Sub CopyTo( _
   ByVal array() As NamedStyle, _
   ByVal index As Integer _
) 
Visual Basic (Usage)Copy Code
Dim instance As DefaultStyleCollection
Dim array() As NamedStyle
Dim index As Integer
 
instance.CopyTo(array, index)
C# 
public void CopyTo( 
   NamedStyle[] array,
   int index
)

Parameters

array
A one-dimensional array into which the elements from ICollection are copied
The array must have zero-based indexing.
index
Zero-based index in array at which to paste styles

Example

This example copies the style to the specified index in an array.
C#Copy Code
FarPoint.Win.Spread.DefaultStyleCollection dsc = new FarPoint.Win.Spread.DefaultStyleCollection();
FarPoint.Win.Spread.NamedStyle[] style = new FarPoint.Win.Spread.NamedStyle[dsc.Count];
dsc.CopyTo((Array)style,0);
Visual BasicCopy Code
Dim dsc As New FarPoint.Win.Spread.DefaultStyleCollection()
Dim style(dsc.Count()) As FarPoint.Win.Spread.NamedStyle
dsc.CopyTo(CType(style, Array), 0)

Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8

See Also

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.